package com.gome.ocean.dao.model.datasource;

/**
 * @author zhangguoqing 2016年10月24日 下午11:22:12
 * @since 5.0.0 返回数据源接口实体类
 */
public class DataSourceBean {

    private Long   guid;
    private Long   adid;
    private Long   gid;
    private String gname;
    private String env_type;
    private String db_type;
    private String ipaddr;
    private Long   db_port;
    private String db_name;
    private String db_key;
    private String read_only;
    private String password;
    private String gdept;
    private String character;
    private String gname_cn;
    private String leader;
    private String db_user;
    private String gtype;
    private String email;

    public String getGdept() {
        return gdept;
    }

    public void setGdept(String gdept) {
        this.gdept = gdept;
    }

    public String getCharacter() {
        return character;
    }

    public void setCharacter(String character) {
        this.character = character;
    }

    public String getGname_cn() {
        return gname_cn;
    }

    public void setGname_cn(String gname_cn) {
        this.gname_cn = gname_cn;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public String getDb_user() {
        return db_user;
    }

    public void setDb_user(String db_user) {
        this.db_user = db_user;
    }

    public String getGtype() {
        return gtype;
    }

    public void setGtype(String gtype) {
        this.gtype = gtype;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Long getGuid() {
        return guid;
    }

    public void setGuid(Long guid) {
        this.guid = guid;
    }

    public Long getAdid() {
        return adid;
    }

    public void setAdid(Long adid) {
        this.adid = adid;
    }

    public Long getGid() {
        return gid;
    }

    public void setGid(Long gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public String getEnv_type() {
        return env_type;
    }

    public void setEnv_type(String env_type) {
        this.env_type = env_type;
    }

    public String getDb_type() {
        return db_type;
    }

    public void setDb_type(String db_type) {
        this.db_type = db_type;
    }

    public String getIpaddr() {
        return ipaddr;
    }

    public void setIpaddr(String ipaddr) {
        this.ipaddr = ipaddr;
    }

    public Long getDb_port() {
        return db_port;
    }

    public void setDb_port(Long db_port) {
        this.db_port = db_port;
    }

    public String getDb_name() {
        return db_name;
    }

    public void setDb_name(String db_name) {
        this.db_name = db_name;
    }

    public String getDb_key() {
        return db_key;
    }

    public void setDb_key(String db_key) {
        this.db_key = db_key;
    }

    public String getRead_only() {
        return read_only;
    }

    public void setRead_only(String read_only) {
        this.read_only = read_only;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((adid == null) ? 0 : adid.hashCode());
		result = prime * result
				+ ((character == null) ? 0 : character.hashCode());
		result = prime * result + ((db_key == null) ? 0 : db_key.hashCode());
		result = prime * result + ((db_name == null) ? 0 : db_name.hashCode());
		result = prime * result + ((db_port == null) ? 0 : db_port.hashCode());
		result = prime * result + ((db_type == null) ? 0 : db_type.hashCode());
		result = prime * result + ((db_user == null) ? 0 : db_user.hashCode());
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		result = prime * result
				+ ((env_type == null) ? 0 : env_type.hashCode());
		result = prime * result + ((gdept == null) ? 0 : gdept.hashCode());
		result = prime * result + ((gid == null) ? 0 : gid.hashCode());
		result = prime * result + ((gname == null) ? 0 : gname.hashCode());
		result = prime * result
				+ ((gname_cn == null) ? 0 : gname_cn.hashCode());
		result = prime * result + ((gtype == null) ? 0 : gtype.hashCode());
		result = prime * result + ((guid == null) ? 0 : guid.hashCode());
		result = prime * result + ((ipaddr == null) ? 0 : ipaddr.hashCode());
		result = prime * result + ((leader == null) ? 0 : leader.hashCode());
		result = prime * result
				+ ((password == null) ? 0 : password.hashCode());
		result = prime * result
				+ ((read_only == null) ? 0 : read_only.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DataSourceBean other = (DataSourceBean) obj;
		if (adid == null) {
			if (other.adid != null)
				return false;
		} else if (!adid.equals(other.adid))
			return false;
		if (character == null) {
			if (other.character != null)
				return false;
		} else if (!character.equals(other.character))
			return false;
		if (db_key == null) {
			if (other.db_key != null)
				return false;
		} else if (!db_key.equals(other.db_key))
			return false;
		if (db_name == null) {
			if (other.db_name != null)
				return false;
		} else if (!db_name.equals(other.db_name))
			return false;
		if (db_port == null) {
			if (other.db_port != null)
				return false;
		} else if (!db_port.equals(other.db_port))
			return false;
		if (db_type == null) {
			if (other.db_type != null)
				return false;
		} else if (!db_type.equals(other.db_type))
			return false;
		if (db_user == null) {
			if (other.db_user != null)
				return false;
		} else if (!db_user.equals(other.db_user))
			return false;
		if (email == null) {
			if (other.email != null)
				return false;
		} else if (!email.equals(other.email))
			return false;
		if (env_type == null) {
			if (other.env_type != null)
				return false;
		} else if (!env_type.equals(other.env_type))
			return false;
		if (gdept == null) {
			if (other.gdept != null)
				return false;
		} else if (!gdept.equals(other.gdept))
			return false;
		if (gid == null) {
			if (other.gid != null)
				return false;
		} else if (!gid.equals(other.gid))
			return false;
		if (gname == null) {
			if (other.gname != null)
				return false;
		} else if (!gname.equals(other.gname))
			return false;
		if (gname_cn == null) {
			if (other.gname_cn != null)
				return false;
		} else if (!gname_cn.equals(other.gname_cn))
			return false;
		if (gtype == null) {
			if (other.gtype != null)
				return false;
		} else if (!gtype.equals(other.gtype))
			return false;
		if (guid == null) {
			if (other.guid != null)
				return false;
		} else if (!guid.equals(other.guid))
			return false;
		if (ipaddr == null) {
			if (other.ipaddr != null)
				return false;
		} else if (!ipaddr.equals(other.ipaddr))
			return false;
		if (leader == null) {
			if (other.leader != null)
				return false;
		} else if (!leader.equals(other.leader))
			return false;
		if (password == null) {
			if (other.password != null)
				return false;
		} else if (!password.equals(other.password))
			return false;
		if (read_only == null) {
			if (other.read_only != null)
				return false;
		} else if (!read_only.equals(other.read_only))
			return false;
		return true;
	}
}
